package org.redis.cluster.transport.netty.protocol;

import java.util.List;

import org.redis.cluster.transport.protocol.ProtocolOutput;
import org.redis.cluster.transport.session.Session;

public class NettyProtocolOutput implements ProtocolOutput {
	
	private List<Object> out;
	
	public NettyProtocolOutput(List<Object> out) {
		this.out=out;
	}
	
	@Override
	public boolean out(Session session, Object message) {
		out.add(message);
		return true;
	}

}